Optimal. Leaf size=114 \[ \frac{\left (4 a^2+b^2\right ) \sin ^5(c+d x)}{20 d}-\frac{\left (4 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac{\left (4 a^2+b^2\right ) \sin (c+d x)}{4 d}-\frac{3 a b \cos ^5(c+d x)}{20 d}-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.102317, antiderivative size = 114, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3508, 3486, 2633} \[ \frac{\left (4 a^2+b^2\right ) \sin ^5(c+d x)}{20 d}-\frac{\left (4 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac{\left (4 a^2+b^2\right ) \sin (c+d x)}{4 d}-\frac{3 a b \cos ^5(c+d x)}{20 d}-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3508
Rule 3486
Rule 2633
Rubi steps
\begin{align*} \int \cos ^5(c+d x) (a+b \tan (c+d x))^2 \, dx &=-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d}-\frac{1}{4} \int \cos ^5(c+d x) \left (-4 a^2-b^2-3 a b \tan (c+d x)\right ) \, dx\\ &=-\frac{3 a b \cos ^5(c+d x)}{20 d}-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d}-\frac{1}{4} \left (-4 a^2-b^2\right ) \int \cos ^5(c+d x) \, dx\\ &=-\frac{3 a b \cos ^5(c+d x)}{20 d}-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d}-\frac{\left (4 a^2+b^2\right ) \operatorname{Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{4 d}\\ &=-\frac{3 a b \cos ^5(c+d x)}{20 d}+\frac{\left (4 a^2+b^2\right ) \sin (c+d x)}{4 d}-\frac{\left (4 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac{\left (4 a^2+b^2\right ) \sin ^5(c+d x)}{20 d}-\frac{b \cos ^5(c+d x) (a+b \tan (c+d x))}{4 d}\\ \end{align*}
Mathematica [A] time = 0.210422, size = 116, normalized size = 1.02 \[ \frac{150 a^2 \sin (c+d x)+25 a^2 \sin (3 (c+d x))+3 a^2 \sin (5 (c+d x))-60 a b \cos (c+d x)-30 a b \cos (3 (c+d x))-6 a b \cos (5 (c+d x))+30 b^2 \sin (c+d x)-5 b^2 \sin (3 (c+d x))-3 b^2 \sin (5 (c+d x))}{240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 88, normalized size = 0.8 \begin{align*}{\frac{1}{d} \left ({b}^{2} \left ( -{\frac{\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{5}}+{\frac{ \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{15}} \right ) -{\frac{2\,ab \left ( \cos \left ( dx+c \right ) \right ) ^{5}}{5}}+{\frac{{a}^{2}\sin \left ( dx+c \right ) }{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.36548, size = 104, normalized size = 0.91 \begin{align*} -\frac{6 \, a b \cos \left (d x + c\right )^{5} -{\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} a^{2} +{\left (3 \, \sin \left (d x + c\right )^{5} - 5 \, \sin \left (d x + c\right )^{3}\right )} b^{2}}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.90536, size = 169, normalized size = 1.48 \begin{align*} -\frac{6 \, a b \cos \left (d x + c\right )^{5} -{\left (3 \,{\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{4} +{\left (4 \, a^{2} + b^{2}\right )} \cos \left (d x + c\right )^{2} + 8 \, a^{2} + 2 \, b^{2}\right )} \sin \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]